﻿///////////////////////////////////////////////////////////////
//                                                           //
// Code from Arcanea Project.                                //
//                                                           //
// Please include this license part to every reproduction    //
//   of code.                                                //
//                                                           //
// This code is under Ms-RL license                          //
//                                                           //
// Please read futher information about the license,         //
//   the project (news and updates) and the                  //
//   contributors on the address :                           //
//     http://www.codeplex.com/Arcanea/                      //
//                                                           //
///////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;

namespace Arcanea.MapGenerator.Bulding.Interface
{
    class Point
    {
        public float X;
        public float Y;
        public float Z;

        public override string ToString()
        {
            return X.ToString() + " " + Y.ToString() + " " + Z.ToString();
        }

        public override bool Equals(object obj)
        {
            if (obj == null) return false;

            if (obj.GetType().Equals(this.GetType()))
            {
                Point tempObj = (Point)obj;
                return tempObj.X == this.X && tempObj.Y == this.Y && tempObj.Z == this.Z;
            }
            else
                return false;
        }
        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
